<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="HeaderInfo">
        
// Useful functions
using System;
        
namespace <xsl:value-of select="ProjectName"/> {

    public class Utils {
     <![CDATA[
        public static bool Contains(object[] array,object find) 
        {
	        foreach(object o in array) 
	        {
		        if(((Guid)o.GetType().GetProperty("ObjectID").GetValue(o,new object[]{})).Equals(
			        ((Guid)find.GetType().GetProperty("ObjectID").GetValue(find,new object[]{}))))
			        return true;
	        }
	        return false;
        }
    ]]>

    }


}
        
    </xsl:template>
</xsl:stylesheet>